<?php
/* @var $this SupportController */
/* @var $model Support */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'support-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'display_name'); ?>
		<?php echo $form->textField($model,'display_name',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'display_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'account'); ?>
		<?php echo $form->textField($model,'account',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'account'); ?>
	</div>

  <div class="row">
    <?php echo $form->labelEx($model,'status'); ?>
    <?php echo $form->radioButtonList($model, 'status', array('1' => Yii::t('default', 'Online'), '2' => Yii::t('default', 'Offline')), array('separator'=>'', 'template'=>' {input} {label} ')); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'type'); ?>
    <?php echo $form->radioButtonList($model, 'type', array('1' => Yii::t('default', 'Yahoo'), '2' => Yii::t('default', 'Skype')), array('separator'=>'', 'template'=>' {input} {label} ')); ?>
  </div>

	<div class="row">
		<?php echo $form->labelEx($model,'sort'); ?>
		<?php echo $form->textField($model,'sort'); ?>
		<?php echo $form->error($model,'sort'); ?>
	</div>
	
  <div class="row">
    <?php echo $form->labelEx($model,'enabled'); ?>
    <?php echo $form->radioButtonList($model, 'enabled', array('1' => Yii::t('default', 'Có'), '0' => Yii::t('default', 'Không')), array('separator'=>'', 'template'=>' {input} {label} ')); ?>
  </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->